#!D:/CODE/python
# -*- coding: utf-8 -*-
# @Time : 2020/6/2 23:18
# @Author : Alexdong
# @Site : 
# @File : matplotlib1.py
# @Software: PyCharm
# Functional description:假设一天中每隔两个小时（range(2,26,2))的气温 分别是[15,13,14,5,17,20,25,26,27,22,18,15]
# 使用matplotlib画出来

from matplotlib import pyplot as plt

x = range(2, 26, 2)

y = [15, 13, 14, 5, 17, 20, 25, 26, 27, 22, 18, 15]
# 绘图
plt.plot(x, y)
# 展示图形
plt.show()
